package cn.tedu._03vehicle.mapper;

import cn.tedu._03vehicle.pojo.dto.VehicleListQuery;
import cn.tedu._03vehicle.pojo.entity.Vehicle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VehicleMapper {
    int insertVehicle(Vehicle vehicle);

    List<Vehicle> selectlist(@Param("userId") Long userId,@Param("query") VehicleListQuery vehicleListQuery);

    int updateIsDelete(Long id, Long userId);
}
